﻿/*
 * These are very simple tests to verify that the classes haven't changed unexpectedly in some way.
 * Copyright 2012, AltaModa Technologies
 */
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;

using AMT.Azure.Diagnostics;

namespace AMT.Azure.Tests
{
	[TestClass]
	public class Diag_Types
	{
		private DiagnosticInfrastructureLogsEntity infraLogs = new DiagnosticInfrastructureLogsEntity();
		private LogsEntity logs = new LogsEntity();
		private PerformanceCountersEntity perfs = new PerformanceCountersEntity();
		private WindowsEventLogsEntity events = new WindowsEventLogsEntity();

		[TestMethod]
		public void VerifyConstants()
		{
			Assert.IsTrue( Helper.IsNotNullOrEmpty( Constants.WADControlContainerName ));
			Assert.IsTrue( Helper.IsNotNullOrEmpty( Constants.WADDiagnosticInfrastructureLogsTableName ));
			Assert.IsTrue( Helper.IsNotNullOrEmpty( Constants.WADLogsTableName ));
			Assert.IsTrue( Helper.IsNotNullOrEmpty( Constants.WADPerformanceCountersTableName ));
			Assert.IsTrue( Helper.IsNotNullOrEmpty( Constants.WADWindowsEventLogsTableName ));
		}

		[TestMethod]
		public void VerifyVersions()
		{
			Assert.AreEqual(1.0F, Constants.Version);
			Assert.AreEqual(1.0F, infraLogs.Version);
			Assert.AreEqual(1.0F, logs.Version);
			Assert.AreEqual(1.0F, perfs.Version);
			Assert.AreEqual(1.0F, events.Version);
		}
		
	}

}
